-- GENERATED SPELL FOR [Unrelenting Trainee] --


function spell0_16124(pUnit, Event) --@Death Plague,n/a--
pUnit:FullCastSpellOnTarget(55604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16124', 15000, 1)
end

function spell1_16124(pUnit, Event) --@Death Plague,n/a--
pUnit:FullCastSpellOnTarget(55645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16124', 15000, 1)
end

function Sorts_16124(pUnit, Event)
local choix_sorts_16124 = math.random(0, 1)
if choix_sorts_16124 == 0 then
pUnit:RegisterEvent('spell0_16124', 1, 1)
end
if choix_sorts_16124 == 1 then
pUnit:RegisterEvent('spell1_16124', 1, 1)
end
end

function mob16124_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16124', math.random(1500, 3000), 1)
end

function mob16124_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16124_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16124_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16124, 1, 'mob16124_Action')
RegisterUnitEvent(16124, 2, 'mob16124_Leave')
RegisterUnitEvent(16124, 3, 'mob16124_Kill')
RegisterUnitEvent(16124, 4, 'mob16124_Die')
